//
//  ClassifyCollectionViewDelegate.h
//  MyNewProject
//
//  Created by 王春辉 on 12/9/19.
//  Copyright © 2019 sun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ClassifyCollectionViewCell.h"
#import "ClassifyCollectionReusableView.h"

typedef void (^ClassifyCollectionViewScrollToRowAtIndexPathBlock)(NSIndexPath *indexPath);
typedef void (^ClassifyCollectionViewDidSelectItemAtIndexPathBlock)(NSIndexPath *indexPath);
NS_ASSUME_NONNULL_BEGIN

@class HomeShopClassifyModel;
@interface ClassifyCollectionViewDelegate : NSObject<UICollectionViewDelegate, UICollectionViewDataSource>
@property (nonatomic, strong) NSArray <HomeShopClassifyModel *>*dataArray;

/**
 是否相应scroll代理
 */
@property (nonatomic, assign, setter=setRespondScrll:, getter=isRespondScrll) BOOL respondScrll;

/**
 collectionView滑动

 @param block block
 */
- (void)scrollViewToRowAtIndexPathBlock:(ClassifyCollectionViewScrollToRowAtIndexPathBlock)block;

/**
 点击cell回调

 @param block block
 */
- (void)didSelectItemAtIndexPathBlock:(ClassifyCollectionViewDidSelectItemAtIndexPathBlock)block;
@end

NS_ASSUME_NONNULL_END
